package com.buba.controller;

import com.buba.pojo.UserState;
import com.buba.service.UserStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 杨柳
 * @title UserStateController
 * @date 2024/5/16 10:48
 */
@RestController
@CrossOrigin(allowCredentials = "true", originPatterns = "*")
public class UserStateController {
    @Autowired
    private UserStateService userStateService;

    @RequestMapping("/selUserState")
    public List<UserState> selUserState() {
        return userStateService.userStateService();
    }
}
